package com.company;

public class Main {

    public static void main(String[] args) {
	// write your code here
        test1();
        test2();
        test3();
    }

    public static void test1(){
        int i = 1;

        System.out.println("\n=========================================");
        for (;i<=100;i++){
            if(i%2 == 0){
                System.out.print("i="+i + " ");
                if(i<10){
                    System.out.print(" ");
                }
            }

            if(i%10 == 0){
                System.out.println();
            }

        }
    }

    public static void test2(){
        int i = 1;

        System.out.println("\n=========================================");
        while(i<=100){
            if(i%2 == 0){
                System.out.print("i="+i + " ");
                if(i<10){
                    System.out.print(" ");
                }
            }

            if(i%10 == 0){
                System.out.println();
            }

            i++;
        }
    }

    public static void test3(){
        int i=1;

        System.out.println("\n=========================================");
        do{
            if(i%2 == 0){
                System.out.print("i="+i + " ");
                if(i<10){
                    System.out.print(" ");
                }

            }
            if(i%10 == 0){
                System.out.println();
            }
            i++;
        }while(i<=100);
    }
}
